package com.zh.ssmshirofreemarker.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.zh.ssmshirofreemarker.entity.Permission;
import com.zh.ssmshirofreemarker.entity.Role;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.zh.ssmshirofreemarker.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ZH
 * @since 2018-07-24
 */
public interface RoleMapper extends BaseMapper<Role> {

    public List<Role> selectRoleList(Pagination page, @Param("role") Role role);

    public List<Role> selectRolesByUserId(User user);


}
